package com.example.bgImageSear.user.service.impl;

import com.example.bgImageSear.user.entity.CommentEntity;
import com.example.bgImageSear.user.mapper.CommentMapper;
import com.example.bgImageSear.user.service.ICommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentServiceImpl implements ICommentService {
    @Resource
    CommentMapper commentMapper;

    @Override
    public List<CommentEntity> getCommentList(){return commentMapper.getCommentList();}

    @Override
    public List<CommentEntity> getCommentListById(int bId){return commentMapper.getCommentListById(bId);}

    @Override
    public Long insertCommentByUserId(CommentEntity commentEntity) {return commentMapper.insertCommentByUserId(commentEntity);}
}
